<template>
  <div class="hello">
    <el-row>
      <h1>{{ msg }}</h1>
      <!-- <div>
        输入改变<el-input
          v-model="value"
          :span="12"
          placeholder="Please input"
        />
      </div> -->
      <div v-if="type == 1">原生input<input type="text" v-model="value" /></div>
      <div v-else>element-plus<el-input :span="12" v-model="value"/></div>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "HelloWorld",
  props: {
    msg: String,
  },
  data() {
    return {
      value: "我是model值",
      type: "0",
    };
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
